package com.ytsky.hctechnologysys.service;

import com.github.pagehelper.PageInfo;
import com.ytsky.hctechnologysys.entity.Employee;


/**
 * @author Dell
 */
public interface EmployeeService {

    /**
     *
     * @param username
     * @param password
     * @return
     */
    Employee findByNamePass(String username, String password);

    /**
     *
     * @param pageNum
     * @param pageSize
     * @param keyword
     * @return
     */

    PageInfo<Employee> findByKeyword(int pageNum, int pageSize, String keyword);


    /**
     *
     * @param pageNum
     * @param pageSize
     * @return
     */
    PageInfo<Employee> findAll(int pageNum, int pageSize);


    /**
     *
     * @param id
     * @return
     */
    Employee findById(int id);


    /**
     *
     * @param id
     * @return
     */
    boolean remove(int id);


    /**
     *
     * @param employee
     * @return
     */
    boolean append(Employee employee);


    /**
     *
     * @param employee
     * @return
     */
    boolean modify(Employee employee);
}
